/*
 * Controller.java
 *
 * Created on 14 de Julho de 2008, 16:43
 *
 */

package br.unifacs.mda.plugin.importation;

import pim.Project;

/**
 *
 * @author George
 */
public class Controller {
    
    /* ---------- Attributes ---------- */
    
    private static Controller controller;
    
    private Project project;
    
    /* ---------- Associations ---------- */
    
    /* ---------- Constructors ---------- */
    
    /** Creates a new instance of Controller */
    private Controller() {
    }
    
    /* ---------- Gets and Setters ---------- */
    
    public Project getProject() {
        return this.project;
    }
    
    public void setProject(Project project) {
        this.project = project;
    }
    
    /* ---------- Public Methods ---------- */
    
    public static synchronized Controller getInstance(Boolean newInstance){
        if(controller == null || newInstance) {
            controller = new Controller();
        }
        return controller;
    }
    
    /* ---------- Private Methods ---------- */
    
}
